package com.lkx.dao;

import com.lkx.domain.SeckillDO;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 
 * @author likaixuan
 * @email 934268568@qq.com
 * @date 2018-08-30 14:58:39
 */
@Mapper
public interface SeckillMapper {

	int getSeckillCount(Long seckillId);

	SeckillDO get(Long id);
	
	List<SeckillDO> list(Map<String, Object> map);
	
	int count(Map<String, Object> map);
	
	int save(SeckillDO seckill);
	
	int update(SeckillDO seckill);

	int resetNum(@Param("num") int num, @Param("id") Long seckillId);

	int remove(Long id);
	
	int batchRemove(Long[] ids);
}
